package com.citycloud.ccuap.tc.admin.repository;
import java.util.List;

import org.springframework.data.mybatis.repository.support.MybatisRepository;
import org.springframework.stereotype.Repository;

import com.citycloud.ccuap.tc.admin.entity.SysProjectDgRoleRel;

/**
 * 数据角色关联表数据库操作
 * @author sufeng
 *
 */

@Repository
public interface SysProjectDgRoleRelRepository extends MybatisRepository<SysProjectDgRoleRel, String> {

    void deleteByDatagroupId(String objId);

    void deleteByRoleId(Long roleId);

    List<SysProjectDgRoleRel> findByRoleId(Long roleId);
}